#ifndef MAIN_H_
#define MAIN_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef enum{FALSE=0, TRUE} bool;


typedef struct{
	char format[2];
	int size;
	char reserved[2];
	char reserved2[2];
	int headerSize;
}headerType;

typedef struct{
   int size;
   int width;
   int height;
   char planes[2];
   char bitcount[2];
   int compression;
   int sizeimage;
   int xpelspermeter;
   int ypelspermeter;
   int colorsused;
   int colorsimportant;
}DIBHeaderType; 

void readFirstHeader(headerType  * header, FILE * source);
void readSecondHeader(DIBHeaderType *  DIBHeader, FILE * source);

void printHeader( headerType * header);
void printDIBHeader( DIBHeaderType * header);

#endif /*MAIN_H_*/
